package net.lcheng.service;

import net.lcheng.commons.utils.PageList;
import net.lcheng.model.User;
import net.lcheng.model.WxShop;
import net.lcheng.model.WxShopBanner;
import net.lcheng.model.WxShopCategory;
import net.lcheng.vo.WxShopModel;

import java.util.Date;
import java.util.List;

/**
 * Created by LV on 2016/6/30.
 */
public interface WxShopService {
    //由shopId查询微信商店的分类列表
    List<WxShopCategory> getShopCategoryList(int shopId);

    //由用户id查找商店信息
    WxShop getShopInforByUserId(String userId);


    WxShop getShopInforByUserIdAndShopStatus(String userId,int shopStatus);

    /***
     * 更新店铺名
     * @param shopName
     * @return
     */
    int updateName(String shopName,int shopId);

    int update(WxShop wxShop);
    /***
     * 用shopid查找店铺名
     * @param wxShopShopId
     * @return
     */
    WxShop getWxShopByShopId(Integer wxShopShopId);
    /***
     * 查询微店店铺(和搜索)
     * @param pageIndex
     * @param pageSize
     * @param shopName
     * @param sdate
     * @param edate
     * @return
     */
    PageList<WxShopModel> getWxShopList(Integer pageIndex, Integer pageSize, String shopName, String userName, Date sdate, Date edate);
    /***
     * 申请开微店
     * @return
     */
    int insert(String shopName, String shopUserUserId, String name, String phone, String addrProvinceCode, String addrProvinceName, String addrCityCode, String addrCityName, String addrDistrictCode, String addrDistrictName,String shopSummary,String shopMainProduct);
}
